#include <AnimationWindow.h>
Public Member Functions | |
| AnimationWindow () | |
| void | processInput (double delta, osg::ref_ptr< PhysicsEventHandler > ph) |
| void | setCamera () |
| void | setViewer () |
| void | setScene () |
| osg::ref_ptr< osg::Group > | getRoot () |
| osg::ref_ptr< osgProducer::Viewer > | getViewer () |
| void | createCarPhysics (Vehicle &vehicle, osg::ref_ptr< osg::PositionAttitudeTransform > transform) |
| void | realize () |
| void | addOtherPhysicalObject (TraffEduObject *object) |
| void | createConstantObjects (OSGWindows *osgWindows) |
| void | odeDraw () |
| void | exit (OSGWindows *) |
| vector< CarPhysics * > | getpCarPhys () |
| vector< OtherPhysicalObjects * > | getOtherPhysicalObjects () |
| void | followVehicle (OSGWindows *osgwindows) |
| void | setRotationArray (Vehicle *) |
| void | loadSkyBox (OSGWindows *osgwindows) |
| void | draw () |
| void | generateSeq (OSGWindows *window, TrafficLight *ptr) |
| void | deselectAll (OSGWindows *osgwind) |
Public Attributes | |
| double | physTime |
| double | deltaTime |
| double | throttle |
| double | brake |
| double | steering |
| Audio * | audio_ |
Private Member Functions | |
| void | createControlPoints (Vehicle *vehicle) |
| void | createRotationArray (Vehicle *vehicle) |
Private Attributes | |
| vector< CarPhysics * > | pCarPhysVector |
| vector< OtherPhysicalObjects * > | otherPhysicalObjects |
| osg::Matrixd | myCameraMatrix |
| osg::Matrixd | cameraRotation |
| osg::Matrixd | cameraTrans |
| osg::ref_ptr< osg::Group > | root |
| osg::ref_ptr< osgProducer::Viewer > | viewer |
Definition at line 6 of file AnimationWindow.h.
|
|
A constructor. initializes sound parameters and scene root Definition at line 29 of file AnimationWindow.cpp. References audio_, brake, deltaTime, Audio::initSound(), physTime, root, steering, and throttle. |
|
|
a normal member taking one argument
Definition at line 134 of file AnimationWindow.cpp. References TraffEduObject::getObjectType(), and VEHICLE. Referenced by createConstantObjects(). |
|
||||||||||||
|
a normal member taking two arguments
Definition at line 108 of file AnimationWindow.cpp. References CarPhysics::create(), PhysicsServer::getInstance(), pCarPhysVector, and PhysicsServer::registerClient(). |
|
|
a normal member taking one argument
Definition at line 180 of file AnimationWindow.cpp. References addOtherPhysicalObject(), generateSeq(), OSGWindows::getObjects(), and LIGHT. |
|
|
a normal member taking one argument
Definition at line 274 of file AnimationWindow.cpp. References Path::addNewPoint(), TraffEduObject::getObjectPATvector(), Vehicle::getPath(), and TraffEduObject::objectPATvectorSize(). |
|
|
a normal member taking one argument
Definition at line 387 of file AnimationWindow.cpp. References Vehicle::getPath(), and Path::setRotationArray(). |
|
|
Definition at line 44 of file AnimationWindow.cpp. References OSGWindows::addCommandDeselectAll(), and osgwind. |
|
|
a normal member the animation window's main drawing loop is implemented in this function also the PhysicsServer is stepped. Definition at line 443 of file AnimationWindow.cpp. References brake, getpCarPhys(), getViewer(), steering, and throttle. |
|
|
Definition at line 250 of file AnimationWindow.cpp. References audio_, Vehicle::deletePath(), OSGWindows::getObjects(), Audio::killALData(), Vehicle::reload(), TraffEduObject::resetCameraFollow(), root, TraffEduObject::setInAnimation(), TraffEduObject::undoPhysicalVehicle(), and VEHICLE. |
|
|
a normal member taking one argument
Definition at line 356 of file AnimationWindow.cpp. References OSGWindows::getObjects(). |
|
||||||||||||
|
the traffic lights timing's is implemented in this function.
Definition at line 148 of file AnimationWindow.cpp. References TrafficLight::getFrameColor(), OSGWindows::getFrames(), TrafficLight::seqNode, and TrafficModel::trafficLight(). Referenced by createConstantObjects(). |
|
|
Definition at line 241 of file AnimationWindow.cpp. References otherPhysicalObjects. |
|
|
Definition at line 237 of file AnimationWindow.cpp. References pCarPhysVector. Referenced by draw(). |
|
|
a normal member
Definition at line 100 of file AnimationWindow.cpp. References root. |
|
|
a normal member
Definition at line 97 of file AnimationWindow.cpp. References viewer. Referenced by draw(). |
|
|
a normal member taking one argument adds skybox node to root
Definition at line 458 of file AnimationWindow.cpp. References OSGWindows::getConstantRoot(), osgwind, and root. |
|
|
a normal member calls carPhysics odeDraw function for all physical car objects Definition at line 244 of file AnimationWindow.cpp. References pCarPhysVector. |
|
||||||||||||
|
a normal member taking two arguments and returning void.
Definition at line 49 of file AnimationWindow.cpp. |
|
|
Definition at line 128 of file AnimationWindow.cpp. References myCameraMatrix, and viewer. |
|
|
a normal member sets camera position Definition at line 81 of file AnimationWindow.cpp. References cameraRotation, cameraTrans, and myCameraMatrix. |
|
|
|
|
|
a normal member binds the root and the viewer Definition at line 104 of file AnimationWindow.cpp. |
|
|
a normal member sets up osgProducer::Viewer Definition at line 93 of file AnimationWindow.cpp. References BuildConfig(), and viewer. |
|
|
Definition at line 30 of file AnimationWindow.h. Referenced by AnimationWindow(), and exit(). |
|
|
Definition at line 18 of file AnimationWindow.h. Referenced by AnimationWindow(), draw(), and processInput(). |
|
|
Definition at line 128 of file AnimationWindow.h. Referenced by setCamera(). |
|
|
Definition at line 129 of file AnimationWindow.h. Referenced by setCamera(). |
|
|
Definition at line 11 of file AnimationWindow.h. Referenced by AnimationWindow(). |
|
|
Definition at line 127 of file AnimationWindow.h. Referenced by realize(), and setCamera(). |
|
|
Definition at line 126 of file AnimationWindow.h. Referenced by getOtherPhysicalObjects(). |
|
|
a private variable vector of physical cars Definition at line 125 of file AnimationWindow.h. Referenced by createCarPhysics(), getpCarPhys(), and odeDraw(). |
|
|
Definition at line 10 of file AnimationWindow.h. Referenced by AnimationWindow(). |
|
|
a private variable scene root Definition at line 134 of file AnimationWindow.h. Referenced by AnimationWindow(), exit(), getRoot(), loadSkyBox(), and setScene(). |
|
|
a public variable. when a car is set user controlled, steering is set to define car turn angle when user presses a or d key Definition at line 24 of file AnimationWindow.h. Referenced by AnimationWindow(), draw(), and processInput(). |
|
|
a public variable. when a car is set user controlled, throttle is set to define car acceleration when user presses w key Definition at line 17 of file AnimationWindow.h. Referenced by AnimationWindow(), draw(), and processInput(). |
|
|
a private variable viewer Definition at line 139 of file AnimationWindow.h. Referenced by getViewer(), realize(), setScene(), and setViewer(). |
1.4.6-NO